<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动-清除浮动-额外标签</title>
    <style>
        .one {
            margin: 100px auto;
            width: 1200px;
            /* height: 400px; */
            background-color: pink;
        }

        .oi {
            float: left;
            width: 200px;
            height: 400px;
            background-color: slategray;
        }

        .lk {
            float: right;
            width: 950px;
            height: 400px;
            background-color: orange;
        }

        .two {
            width: 1500px;
            height: 100px;
            background-color: red;
        }
        .clearfix{
            clear: both;
        }
    </style>
</head>

<body>
    <div class="one">
        <div class="oi"></div>
        <div class="lk"></div>
        <div class="clearfix"></div>
    </div>
    <div class="two"></div>
</body>

</html>